#include "Character.h"
#include "cs315.h"
#include <stdio.h>
#include <stdlib.h>
#include <iostream>



void Character::printCharacter()
{
	printf("This character is # %d, race: %d, class: %d\n ATK: %d\n DEF: %d\n HP: %d\n SPD: %d\n Weapon level: %d\n Armor level: %d\n",charID, race, charClass, ATK, DEF, HP, SPD, weapon, armor);
}


void Character::setCharID(int newCharID)
{
	charID = newCharID;
}
	
int	 Character::getCharID()
{
	return charID;
}

void Character::setRace(int newRace)
{
	race = newRace;
}

int Character::getRace()
{
	return race;
}

void Character::setCharClass(int newCharClass)
{
	charClass = newCharClass;
}
	
int Character::getCharClass()
{
	return charClass;
}

void Character::setATK(int newATK)
{
	ATK = newATK;
}
	
int Character::getATK()
{
	return ATK;
}

void Character::setDEF(int newDEF)
{
	DEF = newDEF;
}
	
int Character::getDEF()
{
	return DEF;
}

void Character::setHP(int newHP)
{
	HP = newHP;
}
	
int Character::getHP()
{
	return HP;
}

void Character::setSPD(int newSPD)
{
	SPD = newSPD;
}
	
int Character::getSPD()
{
	return SPD;
}

void Character::setWeapon(int newWeapon)
{
	weapon = newWeapon;
}
	
int Character::getWeapon()
{
	return weapon;
}

void Character::setArmor(int newArmor)
{
	armor = newArmor;
}
	
int Character::getArmor()
{
	return armor;
}


Character::Character(int NEWID)
{
	charID = NEWID;
	race = CS315::RandInt(5);
	charClass = CS315::RandInt(5);	 
	ATK = CS315::RandInt(10);
	DEF = CS315::RandInt(10);
	HP = CS315::RandInt(10);
	SPD = CS315::RandInt(10);
	weapon = CS315::RandInt(4);
	armor = CS315::RandInt(4);
}

Character::Character(int NEWID,int NEWrace,int NEWcharClass,int NEWatk, int NEWdef, int NEWhp, int NEWspd, int NEWweapon,int NEWarmor)
{
	charID = NEWID;
	race = NEWrace;
	charClass = NEWcharClass;	 
	ATK = NEWatk;
	DEF = NEWdef;
	HP = NEWhp;
	SPD = NEWspd;
	weapon = NEWweapon;
	armor = NEWarmor;
}



Character::Character()
{
	charID = 0;
	race = 1;
	charClass = 1;	 
	ATK = 1;
	DEF = 1;
	HP = 1;
	SPD = 1;
	weapon = 1;
	armor = 1;
}


Character::~Character()
{

}

//int main()
//{
//	Character* newCharacter = new Character(0);
//	newCharacter->printCharacter();
//
//	Character* newCharacter1 = new Character(1);
//	newCharacter1->printCharacter();
//	std::cin.get();
//	return 0;
//}